#include "queue.h"

int main(void)
{
  /* 初始化队列 */
  Queue *q = init_queue();

  /* 入队 */
  push(q, 1);
  push(q, 3);
  push(q, 2);
  print_queue(q);
  printf("Length: %d\n", get_length(q));
  printf("Head: %d\n\n", peek(q));
  push(q, 5);
  print_queue(q);
  
  /* 出队 */
  int a = pop(q);
  printf("\nRemoved: %d\n", a);
  print_queue(q);
  printf("Length: %d\n", get_length(q));
  printf("Head: %d\n\n", peek(q));

  /* 销毁 */
  destory_queue(q);

  return 0;
}
